package com.input4hua.strategy;

/**
 * Created by jiahua.hu on 2019/3/17.
 */
public class Main {
    public static void main(String[] args) {
        Strategy strategy = new ConcreteStrategy1();
        Context context = new Context(strategy);
        context.doSomething();

        strategy = new ConcreteStrategy2();
        context = new Context(strategy);
        context.doSomething();
    }
}
